<%@ page language="java" contentType="text/html;charset=utf-8" pageEncoding="utf-8"%>
<%@ include file="/base/jsp/taglibs.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
	<%@ include file="/base/jsp/jscss.jsp"%>
	<title></title>
	<script type="text/javascript">
	
		$(function () {

			$('#dataList').datagrid({  
		
				url:'${ctx }/base/menu/menu!list2.do',
			    title:'list',
			    pagination:true,
			    rownumbers:true,
			    singleSelect:true,
			    fitColumns: true,
			    toolbar:easyUi.initButton([{name:'add'}]),
			    
			    columns:[[  
			            {field:'id',title:'编号',width:100},  
		                {field:'name',title:'名称',width:100},  
		                {field:'url',title:'链接',width:100},  
		            ]],
			});

			easyUi.form('formTest');
			easyUi.initButtonBar("formToolBar",[{name:'save'}]);
			
		});	
		
		function save() {

			$("#form").submit();
		};

		function saveForm() {

		};
	</script>
</head>
<body>
	
<!-- 	<table border="1"> -->
<!-- 		<tr> -->
<!-- 			<td>name</td><td>url</td><td>操作</td> -->
<!-- 		</tr> -->
<%-- 		<c:forEach items="${pageBean.result }" var="bean" varStatus="i"> --%>
<!-- 			<tr> -->
<%-- 				<td>${bean.name }</td><td>${bean.url }</td><td><a href="">发起</a></td> --%>
<!-- 			</tr> -->
<%-- 		</c:forEach> --%>
<!-- 	</table> -->
	
<div id="dataList"></div>	
	
<%-- 	<grid:gridData list="pageBean"> --%>
<%-- 		<grid:gridColumn name="name"></grid:gridColumn> --%>
<%-- 	</grid:gridData> --%>
	
<div id='formTest'>
	<div id="formToolBar" class="datagrid-toolbar"></div>
	<form id="form" method="post" action="${ctx }/base/menu/menu!save.do">
		<table>
			<tr>
				<td>Name:</td>
				<td><input class="easyui-validatebox" type="text" name="bean.name" data-options="required:true"></input></td>
				<td>url:</td>
				<td><input class="easyui-validatebox" type="text" name="bean.url" data-options="required:true"></input></td>
			</tr>
		</table>
	</form>
</div>
	
</body>
</html>